﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PetaPoco;
using Tunynet;
using Tunynet.Caching;

namespace Spacebuilder.Common
{
    /// <summary>
    /// 理想对象
    /// </summary>
    [TableName("spb_EachRequests")]
    [PrimaryKey("Id", autoIncrement = true)]
    [CacheSetting(true, ExpirationPolicy = EntityCacheExpirationPolicies.Usual)]
    [Serializable]
    public class EachRequest : SerializablePropertiesBase, IEntity
    {
        #region 理想中对方情况

        /// <summary>
        ///Id
        /// </summary>
        public long Id { get; protected set; }

        /// <summary>
        ///UserId
        /// </summary>
        public long UserId { get; set; }


        /// <summary>
        /// 理想中对方学历
        /// </summary>
        public string OtherEducation { get; set; }

        /// <summary>
        /// 理想中对方身高
        /// </summary>
        public string OtherHeight { get; set; }

        /// <summary>
        /// 理想中对象性格
        /// </summary>
        public string OtherCharacter { get; set; }

        /// <summary>
        /// 理想中对象婚姻状况
        /// </summary>
        public string OtherMaritalStatus { get; set; }

        /// <summary>
        /// 理想中对象住房情况
        /// </summary>
        public string OtherHousingSituation { get; set; }

        /// <summary>
        /// 理想中对象职业
        /// </summary>
        public string OtherOccupation { get; set; }

        /// <summary>
        /// 理想中对象户口
        /// </summary>
        public string OtherRegistered { get; set; }

        /// <summary>
        /// 理想中对象居住地点
        /// </summary>
        public string OtherPlaceResidence { get; set; }

        /// <summary>
        /// 理想中对象工作地点
        /// </summary>
        public string OtherPlaceWork { get; set; }

        #endregion

        #region IEntity 成员

        object IEntity.EntityId { get { return this.Id; } }

        bool IEntity.IsDeletedInDatabase { get; set; }

        #endregion IEntity 成员

    }
}
